<?php
namespace app\index\controller;
use think\Db;
class Wechat extends Base{
    public function wechat(){
    	$comwechat_banner=Db::name('comwechat_banner')->where('id',1)->find();
        $communicate_item=Db::name('communicate_item')->order('sort desc')->select();
        $efficiency_office_title=Db::name('efficiency_office_title')->where('id',1)->find();
        $efficiency_office=Db::name('efficiency_office')->order('sort desc')->select();
        $industry_solutions_title=Db::name('industry_solutions_title')->where('id',1)->find();
        $industry_solutions=Db::name('industry_solutions')->order('sort desc')->select();
        $headquarters_branches=Db::name('headquarters_branches')->order('sort desc')->select();
        $others=Db::name('others')->where('state',1)->order('sort desc')->select();
        $cases=Db::name('cases')->where('type',5)->order('sort desc')->limit(6)->select();
        $this->assign('system_set',$this->system_set());
		$this->assign('comwechat_banner',$comwechat_banner);
        $this->assign('communicate_item',$communicate_item);
        $this->assign('tmdurl',$this->request->domain());
        $this->assign('others',$others);
        $this->assign('efficiency_office_title',$efficiency_office_title);
        $this->assign('efficiency_office',$efficiency_office);
        $this->assign('industry_solutions_title',$industry_solutions_title);
        $this->assign('industry_solutions',$industry_solutions);
        $this->assign('headquarters_branches',$headquarters_branches);
        $this->assign('cases',$cases);
        return $this->fetch();
    }
}
